#ifndef  _USOCKET_H_
#define  _USOCKET_H_

#include "../define/define.h"

class usocket
{
public:
	usocket();
	~usocket();

	bool init(uint16 d_port);
    
	uint32 get_socket()
	{
		return m_socket;
	}

	bool sendbuf(uint32 ip, uint16 port, char* buf, uint16 buf_size);
	bool recvbuf(uint32* ip, uint16* port, char* buf, uint16* buf_size);

private:

	uint32  m_socket;

};

#endif
